class Employee
{
	String empno,empname;
	Employee(String eno,String ename)
	{
	this.empno=eno;
	this.empname=ename;
	}
	void display()
	{
	System.out.println("Number is:"+empno);
	System.out.println("Name is:"+empname);
	}
}

class Manager extends Employee
{
	double salary;
	String divison;
	Manager(String eno,String ename,double sal,String div)
	{
	super(eno,ename);
	this.salary=sal;
	this.divison=div;
	}
	void display()
	{
	super.display();
	System.out.println("salary:"+salary);
	System.out.println("divison:"+divison);
	}
}
	
class Asstmanager extends Manager
{
	double bouns,net_salary;
	Asstmanager(String eno,String ename,double sal,String div)
	{
	super(eno,ename,sal,div);
	
	}
	void calculater()
		{
		if(salary>100000.00)
		bouns=salary+salary*0.01;
		else
		bouns=salary+salary*0.005;
		net_salary=salary+bouns;
		}
	void display()
	{
	super.display();
	System.out.println("Bouns:"+bouns);
	System.out.println("Net_salary:"+net_salary);
	}
}


class Emp
{
public static void main(String args[])
	{
	Asstmanager a1;
	a1=new Asstmanager("100","Krish",120000000000000000.00,"IT");
	
	a1.calculater();
	a1.display();
	}
}